﻿<UserControl x:Class="LiveTiss.Guias.UserControls.AtendimentoOdontologia"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:converter="clr-namespace:LiveTiss.Classes.TypeConverter" 
    mc:Ignorable="d" x:Name="uc" Width="910">

    <UserControl.Resources>
        <converter:EnumConverter x:Key="enumConverter" />
    </UserControl.Resources>
    
    <Grid Margin="0,19,0,0" VerticalAlignment="Top" Width="910">
        <Rectangle RadiusY="6" RadiusX="6" Stroke="#4D898989"/>
        <TextBlock TextWrapping="Wrap" Text="Dados Atendimento" Margin="10,10,8,0" VerticalAlignment="Top" FontFamily="Segoe UI Semibold" FontSize="16"/>
        <StackPanel Margin="12,44,8,0">
            <Grid Height="53" Margin="0,0,6,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.024*"/>
                    <ColumnDefinition Width="0.976*"/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                    <TextBlock TextWrapping="Wrap" Text="Data de termino do Atendimento" FontFamily="Segoe UI" FontSize="13.333"/>
                    <sdk:DatePicker HorizontalAlignment="Left" Margin="0,6,0,0" SelectedDateFormat="Short"
                                        SelectedDate="{Binding Path=Value._dataTerminoTratamento,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True, BindsDirectlyToSource=True}" />
                </StackPanel>
            </Grid>
            <Grid Height="53" Margin="0,0,6,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.024*"/>
                    <ColumnDefinition Width="0.976*"/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                    <TextBlock TextWrapping="Wrap" Text="Tipo de atendimento" FontFamily="Segoe UI" FontSize="13.333"/>
                    <ComboBox Width="180" HorizontalAlignment="Left" SelectedValuePath="Key" DisplayMemberPath="Value"
                                  ItemsSource="{Binding Path=Value.atendimentoOdontoItems,ElementName=uc,Mode=OneWay}"
                                  SelectedIndex="{Binding Path=Value.tipoAtendimento,ElementName=uc,Mode=TwoWay,Converter={StaticResource enumConverter},ConverterParameter='AtendimentoOdonto'}"/>
                </StackPanel>
            </Grid>
        </StackPanel>
    </Grid>
</UserControl>
